// <copyright file="ColorPickerButton.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using System.Globalization;

namespace YUIAspNetDemo.Button
{
    public partial class ColorPickerButton : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            cpButton.ButtonText = string.Format(CultureInfo.InvariantCulture, "<span id='myColorDisplayMenu' class='bborder' style='width:20px; line-height:20px; background-color:rgb({0},{1},{2})'>&nbsp;&nbsp;&nbsp;&nbsp;</span> <span>Choose...</span>"
                    , cpButton.CurrentColorPicker.Color.R
                    , cpButton.CurrentColorPicker.Color.G
                    , cpButton.CurrentColorPicker.Color.B);

            cpButtonSplit.ButtonText = string.Format(CultureInfo.InvariantCulture, "<span id='myColorDisplaySplit' class='bborder' style='width:20px; line-height:20px; background-color:rgb({0},{1},{2}'>&nbsp;&nbsp;&nbsp;&nbsp;</span> <span>Choose...</span>"
                    , cpButtonSplit.CurrentColorPicker.Color.R
                    , cpButtonSplit.CurrentColorPicker.Color.G
                    , cpButtonSplit.CurrentColorPicker.Color.B);
        }
    }
}
